import request from '@/utils/request'

// 查询收付款管理列表
export function listCollectPayMoney(query) {
  return request({
    url: '/crm/collectPayMoney/list',
    method: 'get',
    params: query
  })
}

// 查询收付款管理详细
export function getCollectPayMoney(collectPayMoneyId) {
  return request({
    url: '/crm/collectPayMoney/' + collectPayMoneyId,
    method: 'get'
  })
}

// 新增收付款管理
export function addCollectPayMoney(data) {
  return request({
    url: '/crm/collectPayMoney',
    method: 'post',
    data: data
  })
}

// 修改收付款管理
export function updateCollectPayMoney(data) {
  return request({
    url: '/crm/collectPayMoney',
    method: 'put',
    data: data
  })
}

// 删除收付款管理
export function delCollectPayMoney(collectPayMoneyId) {
  return request({
    url: '/crm/collectPayMoney/' + collectPayMoneyId,
    method: 'delete'
  })
}

// 审核
export function audit(data) {
  return request({
    url: '/crm/collectPayMoney/audit',
    method: 'post',
    data: data
  })
}

// 回撤提交
export function cancelInfo(data) {
  return request({
    url: '/crm/collectPayMoney/cancelInfo',
    method: 'post',
    data: data
  })
}

// 提交
export function submit(data) {
  return request({
    url: '/crm/collectPayMoney/submit',
    method: 'post',
    data: data
  })
}